package com.foomia.truego.parsers.json;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONArray;
import org.json.JSONException;

public class StringArrayParser {
	public static List<String> parse(JSONArray json) throws JSONException {
        List<String> array = new ArrayList<String>();
        for (int i = 0, m = json.length(); i < m; i++) {
            array.add(json.getString(i));
        }
        
        return array; 
    }

}
